eval

abstract fun eval(vars: Map<Char, Double>): Double

Deprecated

Where possible use safeEval() to avoid throwing exceptions on evaluation failure

Evaluates the math expression

Return

Double - The result of the expression evaluation

Author

fzzyhmstrs

Since

0.2.0

Parameters

vars

Map - map of the input variables. The Char used must match the variable characters used in the string expression and visa-versa

Throws

if the evaluation hits a critical error. Often this will be because an expected variable is not passed to vars